package org.mark.gateway.health;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

@Component
public class CustomHealthIndicator implements HealthIndicator {

    @Override
    public Health health() {
        // 这里可以添加自定义的健康检查逻辑
        // 例如：检查数据库连接、检查外部服务等
        return Health.up()
                .withDetail("status", "服务运行正常")
                .withDetail("timestamp", System.currentTimeMillis())
                .build();
    }
} 